home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d17 / setprn.arc / SETPRN.DOC < prev   
Text File  |  1985-12-08  |  3KB  |  60 lines

  1.  
  2.  ---------------------------------------------------------------------------- 
  3. | * SETPRN *  A printer utility for the IBM PC & PC-XT.  V. T. Bly  12/11/83 |
  4.  ----------------------------------------------------------------------------
  5.  
  6. SUMMARY
  7. -------
  8.       SETPRN provides an easy method of setting printer parameters from the
  9.   DOS command level or a batch file.  SETPRN is similar to the BASIC LPRINT
  10.   command, except that control codes are enclosed in square brackets ("[]")
  11.   instead of the "CHR$()" used in BASIC.  Also, text strings should not be
  12.   enclosed in quotes.  Like LPRINT, the normal carriage return/line feed can
  13.   be suppressed by a trailing semicolon (";") or comma (",").  A trailing
  14.   semicolon will leave the print head at the end of the just printed text,
  15.   while a comma will advance the print head to the next tab stop.
  16.  
  17.  
  18. EXAMPLES
  19. --------
  20.       The following examples assume that the file SETPRN.COM is on the
  21.   default disk drive.  Note that "<enter>" means that you should press
  22.   the enter/return key after typing the command. 
  23.  
  24.  SETPRN Testing 0123456789 <enter>
  25.     This command will simply print the string "Testing 0123456789" on
  26.     the printer and drop down to the next line.
  27.  
  28.  SETPRN Merry Christmas; <enter>
  29.     This command will print the string "Merry Christmas" on the printer,
  30.     but NOT drop down to the next line.  Notice the trailing ";" which
  31.     suppresses the carriage return/line feed.  On some printers, "Merry
  32.     Christmas" may not actually be printed until an output is sent to
  33.     the printer which contains a carriage return.
  34.  
  35.  SETPRN [27]E; <enter>
  36.     This command will send Escape E to the printer.  This sequence turns
  37.     on emphasized printing on the IBM and Epson dot matrix printers.
  38.  
  39.  SETPRN [27]!Boldface Title[27]" <enter>
  40.     This command will print the string "Boldface Title" in boldface on
  41.     the C. Itoh and NEC dot matrix printers and drop down to the next
  42.     line.  With these printers, Escape ! starts boldface printing and
  43.     Escape " stops boldface printing.  Note that the quote symbol (") may
  44.     be included in the SETPRN command line, just like any other character.
  45.  
  46.  
  47. NOTES
  48. -----
  49.       Any printable character may be included in the SETPRN command line
  50.   except the left square bracket ("["), which is used as the prefix to a
  51.   control code.  This character may be included by enclosing its ASCII code
  52.   (91) between square brackets; that is "[91]".
  53.  
  54.       SETPRN should work correctly on any IBM compatible computer operating
  55.   under MS-DOS.  It should work with any version of MS-DOS, including 1.0,
  56.   1.05, 1.1, 2.0, and 2.1.
  57.  
  58.       Please send your comments to:  Vincent Bly
  59.                      Post Office Box 409
  60.                      Ft. Belvoir, VA  22060